//
//  SelectSourceCell.m
//  ebook
//
//  Created by mt on 16/7/22.
//  Copyright © 2016年 Moton. All rights reserved.
//

#import "SelectSourceCell.h"

@implementation SelectSourceCell
{
    UILabel *titleLabel,*detailLabel;
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    
    if (self) {
        titleLabel = [[UILabel alloc] init];
        titleLabel.frame = CGRectMake(50, 0, 100, 44);
        [self.contentView addSubview:titleLabel];
        detailLabel = [[UILabel alloc] init];
        detailLabel.frame = CGRectMake(titleLabel.x, 37, MTScreenW-titleLabel.width, 20);
        detailLabel.font = [UIFont systemFontOfSize:14];
        detailLabel.textColor = [UIColor darkGrayColor];
        [self.contentView addSubview:detailLabel];
    }
    return self;
}

- (void)setTitleText:(NSString *)title detailText:(NSString *)detail {
    
    titleLabel.text = title;
    detailLabel.text = detail;
}

@end
